package cn.cmeizu.spring6.iocxml.life;

import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * @author cmeizu
 * @date 2023/2/9 22:40
 */
public class TestUser {
  public static void main(String[] args) {
    ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext("bean-life.xml");
    User user = context.getBean("user", User.class);
    System.out.println("6. bean对象创建完成");
    System.out.println("user = " + user);
    context.close();
  }
}
